package com.openbravo.data.loader.ui;

import java.awt.Component;

import javax.swing.DefaultListCellRenderer;
import javax.swing.JList;

import com.openbravo.data.loader.LocalRes;
import e.odbo.data.dsl.query.QBFCompareEnum;

public class QBFCompareEnumListCellRenderer extends DefaultListCellRenderer {
	
	@Override
	public Component getListCellRendererComponent(JList list,
			Object value, int index, boolean isSelected,
			boolean cellHasFocus) {
		QBFCompareEnum obj=(QBFCompareEnum)value;
		String text=obj==null?null: LocalRes.getIntString(obj.getM_sKey());
		return super.getListCellRendererComponent(list, text, index, isSelected, cellHasFocus);
	}
}
